//
//  LYBarHUD.h
//  LYDevelopKit-LYDevelopKit
//
//  Created by 李阳 on 2018/8/20.
//

#import <UIKit/UIKit.h>


@interface LYBarHUD : UIView

#pragma mark - Customization

/// 内部会根据屏幕缩放自动调整大小
+ (void)setFont:(UIFont *)font;

/// [UIColor blackColor] by default
+ (void)setTextColor:(UIColor *)textColor;

/// NSTextAlignmentLeft by default
+ (void)setTextAlignment:(NSTextAlignment)textAlignment;

/// 停留时间 2s by default
+ (void)setStayInterval:(NSTimeInterval)interval;

+ (void)setInfoImage:(UIImage *)image;
+ (void)setSuccessImage:(UIImage *)image;
+ (void)setErrorImage:(UIImage *)image;
+ (void)setAlertImage:(UIImage *)image;

+ (void)setCompletionBlock:(void(^)(void))completion;

+ (BOOL)isPresenting;

#pragma mark - Present Methods

+ (void)presentStatus:(NSString *)status;

+ (void)presentInfoWithStatus:(NSString *)status;

+ (void)presentSuccessWithStatus:(NSString *)status;

+ (void)presentErrorWithStatus:(NSString *)status;

+ (void)presentAlertWithStatus:(NSString *)status;

+ (void)presentCustomWithImage:(UIImage *)image status:(NSString *)status;

@end
